

<%@page import="com.surelution.lansao.OrderItem"%>
<%@ page import="com.surelution.lansao.MemberAddress" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="mobile" />
        <g:set var="entityName" value="${message(code: 'memberAddress.label', default: 'MemberAddress')}" />
        <title>订餐</title>
    </head>
    <body>
        <div class="body">
        	订餐成功！<br/>
        	<g:message code="order.member.label" default="贵客" />:${order.member.nickName }<br/>
        	<g:message code="order.orderTime.label" default="下单时间" />:<g:formatDate date="${order?.orderTime}" format="yyyy-MM-dd HH:ss"/><br/>
        	<g:set var="total" value="${0 }"/>
			 <g:each in="${OrderItem.findAllByOrder(order) }" var="item">
			 	${item.item.name } ${item.amount }份，每份${item.item.price }<br/>
			 	<g:set var="total" value="${total + item.item.price * item.amount }" />
			 </g:each>
			 总${total }元，送餐地址：${order.deliveryAddress }
        </div>
    </body>
</html>
